char *_n_a_m_e (in) Name to use for this window. Must
be unique among all children of
the same _p_a_r_e_n_t.
char *_t_o_p_L_e_v_S_c_r_e_e_n (in) Has same format as _s_c_r_e_e_n_N_a_m_e. If
NULL, then new window is created
as an internal window. If non-
NULL, new window is created as a
top-level window on screen
_t_o_p_L_e_v_S_c_r_e_e_n. If _t_o_p_L_e_v_S_c_r_e_e_n is
an empty string (``'') then new
window is created as top-level
window of _p_a_r_e_n_t's screen.
Tk_Window _t_k_w_i_n (in) Token for window.
char *_p_a_t_h_N_a_m_e (in) Name of new window, specified as
path name within application (e.g.
....aaaa....bbbb....cccc).
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The three procedures TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww, TTTTkkkk____CCCCrrrreeeeaaaatttteeeeWWWWiiiinnnnddddoooowwww, and
TTTTkkkk____CCCCrrrreeeeaaaatttteeeeWWWWiiiinnnnddddoooowwwwFFFFrrrroooommmmPPPPaaaatttthhhh are used to create new windows for use in Tk-
based applications. Each of the procedures returns a token that can be
used to manipulate the window in other calls to the Tk library. If the
window couldn't be created successfully, then NULL is returned and
_i_n_t_e_r_p->_r_e_s_u_l_t is modified to hold an error message.
Tk supports three different kinds of windows: main windows, internal
windows, and top-level windows. A main window is the outermost window
corresponding to an application. Main windows correspond to the
independent units of an application, such as a view on a file that is
part of an editor, or a clock, or a terminal emulator. A main window is
created as a child of the root window of the screen indicated by the
_s_c_r_e_e_n_N_a_m_e. Each main window, and all its descendants, are typically
associated with a single Tcl command interpreter. An internal window is
an interior window of a Tk application, such as a scrollbar or menu bar
or button. A top-level window is one that is created as a child of a
screen's root window, rather than as an interior window, but which is
logically part of some existing main window. Examples of top-level
windows are pop-up menus and dialog boxes.
TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww creates a new main window and associates its _i_n_t_e_r_p
argument with that window and all its eventual descendants.
TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww also carries out several other actions to set up the
new application. First, it adds all the Tk commands to those already
defined for _i_n_t_e_r_p. Second, it turns the new window into a ttttoooopppplllleeeevvvveeeellll
widget, which will cause the X window to be created and mapped as soon as
the application goes idle. Third, TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww registers _i_n_t_e_r_p
so that it can be accessed remotely by other Tk applications using the
sssseeeennnndddd command and the name _b_a_s_e_N_a_m_e. Normally, _b_a_s_e_N_a_m_e consists of the